package com.gzhryc.servlet.resources;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.gzhryc.servlet.Resource;

public class ErrorResource extends Resource{

	private Integer error;
	
	public ErrorResource(Integer error){
		this.error = error;
	}

	@Override
	public void export(HttpServletRequest request, HttpServletResponse response) throws Exception {
		response.sendError(error);
	}
}
